#ifndef STOCKRECORDMODEL_H
#define STOCKRECORDMODEL_H

#include <QDebug>
#include <QVector>

#include "model/basemodel.h"
#include "data/stockdata.h"

class StockRecordModel : public BaseModel
{
public:
    StockRecordModel();

    // BaseModel interface
public:
    int Table_Query(char *sql);
    void Table_Delete(char *sql);
    int Table_Inserter(char *sql);
    int Table_Modifier(char *sql);
    StockData *getStockByName(char *sql);
    QVector<StockData> getStock(char *sql);
    int getRow(char *sql);



private:
    QVector<StockData> addstock;



};

#endif // STOCKRECORDMODEL_H
